import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
import AMap from './views/AMap.vue'
import mineMap from './views/MineMap.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'AMap',
      component: ()=> import('./views/AMap.vue'),
    },
    {
      path: '/neditor',
      name: 'neditor',
      component: ()=> import('./views/neditor.vue'),
    },
    {
      path: '/about',
      name: 'about',
      component: function () { 
        return import(/* webpackChunkName: "about" */ './views/About.vue')
      }
    }
  ]
})
